Do not create the console tty until domain_create_ring has succeeded. This
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 24 Oct 2005 13:11:07 +0000 (14:11 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 24 Oct 2005 13:11:07 +0000 (14:11 +0100)
commit493b98bf232159bef0a0f8d5955c04562c2c4108
treee8a363db0e434220b1a6f404685989b5bbae6b7c
parent7ce0fde009344d9b18f47d722f998e0d6a110271
Do not create the console tty until domain_create_ring has succeeded.  This
means that any reads attempted on that tty will not cause handle_tty_read to
segfault looking for an interface that does not exist.

Move the writing of the tty node so that it happens after console/limit has
been read, as it is cleaner if the writing is the last thing that happens.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c